<template>
	<view class="bg-primary mt-15 p-12 round-12 text-white fs-15">
		<textarea maxlength="50" class="fs-13 h-90" v-model="props.modelValue" :placeholder="props.placeholder"
			@input='inputChange'></textarea>
	</view>
</template>

<script setup>
	const emit = defineEmits(['update:modelValue'])
	const props = defineProps({
		modelValue: {
			type: String,
			default: ''
		},
		placeholder: {
			type: String,
			default: '请输入二维码内容'
		}
	})
	const inputChange = (e) => {
		emit('update:modelValue', e.detail.value)
	}
</script>

<style>
</style>